﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RIDA.Engine;
using RIDA.Globals;
using System.ComponentModel.Composition;

namespace RIDA.Tasks
{
    [Serializable]
    [Export(typeof(IExecutableTask))]
    public class CopyFolderTask : ModelBase, IExecutableTask
    {

        public CopyFolderTask()
        {
            Name = "Copy";
            IconUrl = "/RIDA.Studio;component/Images/Folder.png";
            
        }
        [ExchangeDataProperty(ExchangeDirection.Input)]
        public string FolderPath { get; set; }
        [ExchangeDataProperty(ExchangeDirection.Input)]
        public string FilesPattern { get; set; }
        [ExchangeDataProperty(ExchangeDirection.Input)]
        public bool CopySubFolders { get; set; }

        #region IRunnableTask Members

        private string name;
        public string Name
        {
            get { return name; }
            set
            {
                name = value;
                OnNotifyPropertyChanged("Name");
            }
        }

        public TaskValidationResult Validate()
        {
            throw new NotImplementedException();
        }

        public RunnableTaskResult Run()
        {
            throw new NotImplementedException();
        }

        #endregion







        public string IconUrl
        {
            get;
            set;
        }

    }
}
